﻿<%@ Page
	Language		= "C#"
	MasterPageFile	= "~/Edit/Framed.Master"
	CodeBehind		= "Edit.aspx.cs"
	Inherits		= "N2.Workflow.Edit.Web.Edit" %>

<%@ Register
	TagPrefix	= "wf"
	Assembly	= "N2.Workflow"
	Namespace	= "N2.Web.UI.WebControls" %>

<asp:Content ID="ch" ContentPlaceHolderID="Head" runat="server">
</asp:Content>

<asp:Content ID="ct" ContentPlaceHolderID="Toolbar" runat="server">
	<n2:OptionsMenu id="om" runat="server">
		<asp:Repeater
				runat="server"
				ID="rpt">
			
			<ItemTemplate>
				<asp:LinkButton
						ID="btn"
						runat="server"
						CommandName="SelectAction"
						CommandArgument='<%# Eval("Name") %>'
						CssClass="command"><asp:Image
							runat="server"
							ImageUrl='<%# Eval("IconUrl") %>' /><%# Eval("Title") %></asp:LinkButton>
			</ItemTemplate>
			
		</asp:Repeater>
	</n2:OptionsMenu>
	<asp:LinkButton
			ID="lbExecute"
			runat="server"
			CssClass="execute command"
			meta:resourceKey="lbExecute"
			Text="Execute!" />
	<asp:HyperLink
			ID="hlCancel"
			runat="server"
			CssClass="cancel command"
			meta:resourceKey="hlCancel"
			Text="Cancel" />
</asp:Content>

<asp:Content ID="co" ContentPlaceHolderID="Outside" runat="server">
	<div class="right">right
    </div>
</asp:Content>

<asp:Content ID="cc" ContentPlaceHolderID="Content" runat="server">
	<asp:HyperLink ID="hlNewerVersion" runat="server" Text="There is a newer unpublished version of this page." CssClass="versionInfo info" Visible="False" meta:resourcekey="hlNewerVersionResource1"/>
	<asp:HyperLink ID="hlOlderVersion" runat="server" Text="This is a version of another item." CssClass="versionInfo info" Visible="False" meta:resourcekey="hlOlderVersionResource1"/>
    <asp:ValidationSummary ID="vsEdit" runat="server" CssClass="validator info" HeaderText="The item couldn't be saved. Please look at the following:" meta:resourceKey="vsEdit"/>
    <asp:CustomValidator ID="cvException" runat="server" Display="None" />

	<n2:TabPanel runat="server" ToolTip="State Information">
		<wf:WorkflowActionToolbar
			ID="wfToolBar"
			ShouldShowStateTypeSelector="false"
			runat="server" />
	</n2:TabPanel>
	
	<n2:TabPanel runat="server" ToolTip="History">
		<wf:AuditTrail runat="server" ID="at" />
	</n2:TabPanel>
</asp:Content>